<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-model</title>
    <script src="/js/vue.js"></script>
</head>
<body>
<div id="hcp">
    <p>v-model绑定value属性的值和model的数据</p>
    <input type="text" v-model="msg">{{msg}}
    <h3>{{ hh() }}</h3>
</div>

<script>
    new Vue({
        el: "#hcp",
        data: {
            msg:"Hello Vue"
        },
        methods: {
            hh: function () {
                return "hello";
            }
        }
    });
</script>
</body>
</html>